package com.binguo.api.form;

import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * Created by haibang on 18/5/9.
 */
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class LoginForm {
    @ApiParam(value = "手机号", required = true)
    @NotNull
    @Length(min = 11, max = 11)
    private String phone;

    @ApiParam(value = "密码", required = true)
    @NotNull
    private String password;

    @ApiParam(value = "设备号", required = true)
    @NotNull
    private String deviceId;

    @ApiParam(value = "收银台id", required = true)
    @NotNull
    private Integer cashierDeskId;

}
